package com.ruicar.afs.cloud.channel.grade.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("grade_model_info")
@EqualsAndHashCode(callSuper = true)
public class GradeModelInfo extends Model<GradeModelInfo> {
    @ApiModelProperty(value = "物理主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @ApiModelProperty(value = "评级模型代码")
    private String modelCode;
    @ApiModelProperty(value = "模型类型")
    private String modelType;
    @ApiModelProperty(value = "模型名称")
    private String modelName;
    @ApiModelProperty(value = "信用等级")
    private BigDecimal modelValue;
    @ApiModelProperty(value = "模型总分")
    private BigDecimal modelScore;
    @ApiModelProperty(value = "模型有效状态,0-无效,1-有效")
    private String state;
    @ApiModelProperty(value = "模型用途")
    private String useage;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "时间戳")
    private Date timestamps;
    @ApiModelProperty(value = "上次更新操作员号")
    private String lastUpdTlr;
    @ApiModelProperty(value = "上次操作XX")
    private String lastUpdFunc;
    @ApiModelProperty(value = "最新更新日期")
    private Date lastUpdDate;
    //add by jiangxiongfei20200817 begin
    @ApiModelProperty(value = "时间维度")
    private String timeDimension;
    //add by jiangxiongfei20200817 end
}
